package com.danco.training.zaneuskaya.dependency;

import com.danco.training.zaneuskaya.domain.entity.storage.Bookshop;
import com.danco.training.zaneuskaya.domain.service.BookService;
import com.danco.training.zaneuskaya.domain.service.ClaimService;
import com.danco.training.zaneuskaya.domain.service.OrderService;
import com.danco.training.zaneuskaya.domain.service.impl.BookStorageServiceImpl;
import com.danco.training.zaneuskaya.domain.service.impl.ClaimStorageServiceImpl;
import com.danco.training.zaneuskaya.domain.service.impl.OrderStorageServiceImpl;

public class DependencyConfiguration {
	
	public static void config(){
		BookService bookService = BookStorageServiceImpl.getBookStorageSeviceImplInstance();
		OrderService orderService = OrderStorageServiceImpl.getOrderStorageServiceInstance();
		ClaimService claimService = ClaimStorageServiceImpl.getClaimStorageServiceInstance();
		Bookshop.getBookshopInstance().setBookService(bookService);
		Bookshop.getBookshopInstance().setOrderService(orderService);
		Bookshop.getBookshopInstance().setClaimService(claimService);
		
		
	}

}
